﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Model
{
    public class Deli_Order
    {
        public string OrderNo { get; set; }
        public string DeliveryNo { get; set; }
        public int OrderStatus { get; set; }
        public int DeliveryStatus { get; set; }
        public DateTime OrderAddTime { get; set; }
        public string PayName { get; set; }
        public string UserID { get; set; }
        public string UserName { get; set; }
        public string Consignee { get; set; }
        public string ConsigneeMobile { get; set; }
        public string Province { get; set; }
        public string City { get; set; }
        public string District { get; set; }
        public string Address { get; set; }
        public string Batch { get; set; }
        public string DeliveryPeriod { get; set; }
        public DateTime ExpectedDate { get; set; }
        public string PointName { get; set; }
        public int SiteID { get; set; }
        public int TruckID { get; set; }
        public int DriverID { get; set; }
        public string BatchNo { get; set; }
        public string BatchSubNo { get; set; }
        public string BatchNoHis { get; set; }
        public int IsDel { get; set; }
        public string DeliveryBatch { get; set; }
        public string TicketNo { get; set; }
        public int StaffID { get; set; }
        public string StaffName { get; set; }
        public string Latitude { get; set; }
        public string Longitude { get; set; }
        public string DeliveryBatchNo { get; set; }
        public string DeliveryBatchSubNo { get; set; }
        public string DeliveryBatchNoHis { get; set; }
        public int IsProduct { get; set; }
        public decimal ProductAmount { get; set; }
        public decimal ShippingFee { get; set; }
        public decimal InsureFee { get; set; }
        public decimal PayFee { get; set; }
        public decimal PackFee { get; set; }
        public decimal CardFee { get; set; }
        public decimal MoneyPaid { get; set; }
        public decimal Surplus { get; set; }
        public decimal Integral { get; set; }
        public decimal IntegralMoney { get; set; }
        public decimal Bonus { get; set; }
        public decimal OrderAmount { get; set; }
        public string ShippingName { get; set; }
        public int OrderAPPVersion { get; set; }
        public decimal Discount { get; set; }
        public string SerialNumber { get; set; }
        public string BatchDeliveryPeriodHis { set; get; }
        public string ProvinceHis { get; set; }
        public string CityHis { get; set; }
        public string DistrictHis { get; set; }
        public string AddressHis { get; set; }

        //指定送货日期
        public DateTime BestDate { get; set; }
        // 指定送货时间
        public int BestTime { get; set; }

        public List<Deli_OrderDetail> Deli_OrderDetails
        { get; set; }
        public List<Deli_OrderDetail> ERP_OrderDetails
        { get; set; }
    }

    public class Deli_OrderDetail
    {
        public string OrderNo { get; set; }
        public string DeliveryNo { get; set; }
        public string GoodsNo { get; set; }
        public string GoodsName { get; set; }
        public string GoodsShortName { get; set; }
        public int GoodsQty { get; set; }
        public decimal MarketingPrice { get; set; }
        public decimal SalePrice { get; set; }
        public int ExceptionID { get; set; }
        public DateTime ExceptionSignDate { get; set; }
        public int ExceptionBy { get; set; }
        public int OrderDetailID { get; set; }
        public int IsDel { get; set; }

    }
}
